import axios from './http'

//后端接口地址
export const url = `http://localhost:9527/hospital`

//附件上传接口地址
export const uploadFileUrl = `${url}/fileUtils/uploadFile`

//图片查看接口地址
export const showUrl = url+"/images/"

//登录接口地址
export const requestLogin = params => { return axios.post(`${url}/login/login`, params).then(res => res.data) }


//用户信息接口
export const updateUser = params => { return axios.post(`${url}/user/updateUser`, params).then(res => res.data) }
export const delUser = params => { return axios.post(`${url}/user/delUser`, params).then(res => res.data) }
export const batchDelUser = params => { return axios.post(`${url}/user/batchDelUser`, params).then(res => res.data) }
export const queryUser = params => { return axios.post(`${url}/user/queryUser`, params).then(res => res.data) }
export const queryUserByPage = params => { return axios.post(`${url}/user/queryUserByPage`, params).then(res => res.data) }
export const queryUserById = params => { return axios.post(`${url}/user/queryUserById`, params).then(res => res.data) }
export const checkUserInfo = params => { return axios.post(`${url}/user/checkUserInfo`, params).then(res => res.data) }

//病例相关接口
export const updateCaseInfo = params => { return axios.post(`${url}/caseInfo/updateCaseInfo`, params).then(res => res.data) }
export const delCaseInfo = params => { return axios.post(`${url}/caseInfo/delCaseInfo`, params).then(res => res.data) }
export const batchDelCaseInfo = params => { return axios.post(`${url}/caseInfo/batchDelCaseInfo`, params).then(res => res.data) }
export const queryCaseInfo = params => { return axios.post(`${url}/caseInfo/queryCaseInfo`, params).then(res => res.data) }
export const queryCaseInfoByPage = params => { return axios.post(`${url}/caseInfo/queryCaseInfoByPage`, params).then(res => res.data) }
export const queryCaseInfoById = params => { return axios.post(`${url}/caseInfo/queryCaseInfoById`, params).then(res => res.data) }
export const queryRegisteredUserByDoctorId = params => { return axios.post(`${url}/caseInfo/queryRegisteredUserByDoctorId`, params).then(res => res.data) }
export const caseInfoPay = params => { return axios.post(`${url}/caseInfo/caseInfoPay`, params).then(res => res.data) }

//健康情况接口
export const updateHealthInfo = params => { return axios.post(`${url}/healthInfo/updateHealthInfo`, params).then(res => res.data) }
export const delHealthInfo = params => { return axios.post(`${url}/healthInfo/delHealthInfo`, params).then(res => res.data) }
export const batchDelHealthInfo = params => { return axios.post(`${url}/healthInfo/batchDelHealthInfo`, params).then(res => res.data) }
export const queryHealthInfo = params => { return axios.post(`${url}/healthInfo/queryHealthInfo`, params).then(res => res.data) }
export const queryHealthInfoByPage = params => { return axios.post(`${url}/healthInfo/queryHealthInfoByPage`, params).then(res => res.data) }
export const queryHealthInfoById = params => { return axios.post(`${url}/healthInfo/queryHealthInfoById`, params).then(res => res.data) }

//健康检查项接口
export const updateHealthItem = params => { return axios.post(`${url}/healthItem/updateHealthItem`, params).then(res => res.data) }
export const delHealthItem = params => { return axios.post(`${url}/healthItem/delHealthItem`, params).then(res => res.data) }
export const batchDelHealthItem = params => { return axios.post(`${url}/healthItem/batchDelHealthItem`, params).then(res => res.data) }
export const queryHealthItem = params => { return axios.post(`${url}/healthItem/queryHealthItem`, params).then(res => res.data) }
export const queryHealthItemByPage = params => { return axios.post(`${url}/healthItem/queryHealthItemByPage`, params).then(res => res.data) }
export const queryHealthItemById = params => { return axios.post(`${url}/healthItem/queryHealthItemById`, params).then(res => res.data) }

//药品管理相关接口
export const updateMedicine = params => { return axios.post(`${url}/medicine/updateMedicine`, params).then(res => res.data) }
export const delMedicine = params => { return axios.post(`${url}/medicine/delMedicine`, params).then(res => res.data) }
export const batchDelMedicine = params => { return axios.post(`${url}/medicine/batchDelMedicine`, params).then(res => res.data) }
export const queryMedicine = params => { return axios.post(`${url}/medicine/queryMedicine`, params).then(res => res.data) }
export const queryMedicineByPage = params => { return axios.post(`${url}/medicine/queryMedicineByPage`, params).then(res => res.data) }
export const queryMedicineById = params => { return axios.post(`${url}/medicine/queryMedicineById`, params).then(res => res.data) }

//药品类别
export const updateMedicineType = params => { return axios.post(`${url}/medicineType/updateMedicineType`, params).then(res => res.data) }
export const delMedicineType = params => { return axios.post(`${url}/medicineType/delMedicineType`, params).then(res => res.data) }
export const batchDelMedicineType = params => { return axios.post(`${url}/medicineType/batchDelMedicineType`, params).then(res => res.data) }
export const queryMedicineType = params => { return axios.post(`${url}/medicineType/queryMedicineType`, params).then(res => res.data) }
export const queryMedicineTypeByPage = params => { return axios.post(`${url}/medicineType/queryMedicineTypeByPage`, params).then(res => res.data) }
export const queryMedicineTypeById = params => { return axios.post(`${url}/medicineType/queryMedicineTypeById`, params).then(res => res.data) }


//核酸检测相关接口
export const updateNucleicAcid = params => { return axios.post(`${url}/nucleicAcid/updateNucleicAcid`, params).then(res => res.data) }
export const delNucleicAcid = params => { return axios.post(`${url}/nucleicAcid/delNucleicAcid`, params).then(res => res.data) }
export const batchDelNucleicAcid = params => { return axios.post(`${url}/nucleicAcid/batchDelNucleicAcid`, params).then(res => res.data) }
export const queryNucleicAcid = params => { return axios.post(`${url}/nucleicAcid/queryNucleicAcid`, params).then(res => res.data) }
export const queryNucleicAcidByPage = params => { return axios.post(`${url}/nucleicAcid/queryNucleicAcidByPage`, params).then(res => res.data) }
export const queryNucleicAcidById = params => { return axios.post(`${url}/nucleicAcid/queryNucleicAcidById`, params).then(res => res.data) }

//付款记录相关接口
export const updateFeeRecord = params => { return axios.post(`${url}/feeRecord/updateFeeRecord`, params).then(res => res.data) }
export const delFeeRecord = params => { return axios.post(`${url}/feeRecord/delFeeRecord`, params).then(res => res.data) }
export const batchDelFeeRecord = params => { return axios.post(`${url}/feeRecord/batchDelFeeRecord`, params).then(res => res.data) }
export const queryFeeRecord = params => { return axios.post(`${url}/feeRecord/queryFeeRecord`, params).then(res => res.data) }
export const queryFeeRecordByPage = params => { return axios.post(`${url}/feeRecord/queryFeeRecordByPage`, params).then(res => res.data) }
export const queryFeeRecordById = params => { return axios.post(`${url}/feeRecord/queryFeeRecordById`, params).then(res => res.data) }

//挂号接口
export const updateRegistered = params => { return axios.post(`${url}/registered/updateRegistered`, params).then(res => res.data) }
export const delRegistered = params => { return axios.post(`${url}/registered/delRegistered`, params).then(res => res.data) }
export const batchDelRegistered = params => { return axios.post(`${url}/registered/batchDelRegistered`, params).then(res => res.data) }
export const queryRegistered = params => { return axios.post(`${url}/registered/queryRegistered`, params).then(res => res.data) }
export const queryRegisteredByPage = params => { return axios.post(`${url}/registered/queryRegisteredByPage`, params).then(res => res.data) }
export const queryRegisteredById = params => { return axios.post(`${url}/registered/queryRegisteredById`, params).then(res => res.data) }
export const queryRegisteredList = params => { return axios.post(`${url}/registered/queryRegisteredList`, params).then(res => res.data) }
export const addRegistered = params => { return axios.post(`${url}/registered/addRegistered`, params).then(res => res.data) }
export const registeredPay = params => { return axios.post(`${url}/registered/registeredPay`, params).then(res => res.data) }

//敏感词
export const keywords = '反动|暴力|色情|政治|广告';

export default {

}
